package com.fruits.service;

import com.fruits.domain.User;

import java.sql.SQLException;
import java.util.List;

public interface UserService {

    //添加 用户
    public User add(User user) ;

    //登录
    /**
     * @param str
     * @param pwd
     * @return
     * ***/
    public User login(String str, String pwd);
    public List< User> findAll();
    public boolean update(User user);
    public boolean del(int id);
    public User findById(int uid);



}
